package com.xlhj.multiple.controller;

import com.xlhj.multiple.entity.SysUser;
import com.xlhj.multiple.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName UserController
 * @Description 用户表控制器
 * @Author liucaijing
 * @Date 2021/2/24 11:50
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private SysUserService userService;

    @GetMapping("/selectAllUser")
    public List<SysUser> selectAllUser() {
        List<SysUser> userList = userService.selectAllUser();
        return userList;
    }
}
